package com.yzion.demo_navigationbar.normal;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.blankj.utilcode.util.ClickUtils;
import com.yzion.baseapp.R;
import com.yzion.baselib.fragment.BaseFragment;


/**
 * Created by Jue on 2018/6/2.
 */

public class BFragment extends BaseFragment {

    @Override
    public View setContentView(@NonNull LayoutInflater inflater, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_b, null);
        return view;
    }

    @Override
    public View createCustomTitleBar() {
        View titleBarView = getLayoutInflater().inflate(R.layout.custom_title_bar_view, null);
        View btnBack = titleBarView.findViewById(R.id.btn_back);
        btnBack.setOnClickListener(new ClickUtils.OnDebouncingClickListener() {
            @Override
            public void onDebouncingClick(View v) {
                onBackPressed();
            }
        });
        return titleBarView;
    }
    
    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }
}
